package com.ftg.midamall.comm.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * rest模块类入功能
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/10/19 10:56
 */
@Configuration
public class  RestTemplateConfig {

    /**
     * restTemplate模板注入功能
     * @return  RestTemplate
     */
    @Bean
    public RestTemplate initRestTemplate(){
        return  new RestTemplate();
    }

}
